package com.xpu.stock;

import com.xpu.stock.config.TaskThreadPoolInfo;
import com.xpu.stock.config.vo.StockInfoConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

@SpringBootApplication
@MapperScan("com.xpu.stock.mapper")
@EnableConfigurationProperties({StockInfoConfig.class, TaskThreadPoolInfo.class})//开启配置初始化，并加入IOC
public class StockApp {
    public static void main(String[] args) {

        SpringApplication.run(StockApp.class, args);
    }
}
